build: Check CI envvars before rev-parse
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 17 May 2021 20:12:09 +0000 (21:12 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 17 May 2021 20:34:13 +0000 (21:34 +0100)
commitc1fbf654a05ac20b03906695ce340a863b05cec6
treed5e1b0bf29756a7161664b15339dde65b1a525c3
parent1a426d6fffc39abd13e225db3ac76925df5e21b2
build: Check CI envvars before rev-parse

The CI pipeline does not do a full clone, so we cannot use `git
rev-parse` to get the short SHA checksum for the current commit.

Of course, since nothing's ever easy, we cannot use vcs_tag() with a
custom command, so we need to generate our out `demo_conf.h` header
straight from a script.
build-aux/meson/gen-demo-header.py [new file with mode: 0755]
demos/meson.build